<?php
class UtilComponent extends Object 
{ 
    function getParameter($varname=null)
	{
		$rs = ClassRegistry::init('Sysvar')->query("select value from sysvars where varname='$varname'");
		return $rs[0]['sysvars']['value'];
	}
	function getMessage($msgid=null)
	{
		$rs = ClassRegistry::init('Errormsg')->query("select message_en from errormsgs where msgid='$msgid'");
		return $rs[0]['errormsgs']['message_en'];
	}
}